package entity;

import java.util.*;

public class TypeEntity {
    private String expression;
    private String code;
    private pet refPet;
    private pet innerpet;
    private String[] array;
    private List<String> list;
    private Set<String> set;
    private Map<String, String> map;
    private Properties props;
    private String emptyValue;
    private String nullValue = null;

    public void printAll() {
        System.out.println("expression:" + expression);
        System.out.println("code:" + code);
        if (refPet != null) {
            refPet.introduce();
        }
        if (innerpet != null) {
            innerpet.introduce();
        }
        System.out.println("array:" + Arrays.toString(array));
        System.out.println("list:" + list);
        System.out.println("set:" + set);
        System.out.println("map:" + map);
        System.out.println("props:" + props);
        System.out.println("emptyValue:" + emptyValue);
        System.out.println("nullValue:" + nullValue);
    }

    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public pet getRefPet() {
        return refPet;
    }

    public void setRefPet(pet refPet) {
        this.refPet = refPet;
    }

    public pet getInnerpet() {
        return innerpet;
    }

    public void setInnerpet(pet innerpet) {
        this.innerpet = innerpet;
    }

    public String[] getArray() {
        return array;
    }

    public void setArray(String[] array) {
        this.array = array;
    }

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public Set<String> getSet() {
        return set;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    public Map<String, String> getMap() {
        return map;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    public Properties getProps() {
        return props;
    }

    public void setProps(Properties props) {
        this.props = props;
    }

    public String getEmptyValue() {
        return emptyValue;
    }

    public void setEmptyValue(String emptyValue) {
        this.emptyValue = emptyValue;
    }

    public String getNullValue() {
        return nullValue;
    }

    public void setNullValue(String nullValue) {
        this.nullValue = nullValue;
    }
}
